package com.ruoyi.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.service.IZzxxExaminationChoicequestionService;

/**
 * 选择题外键表Controller
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@RestController
@RequestMapping("/zzxx/choicequestion")
public class ZzxxExaminationChoicequestionController extends BaseController
{
    @Autowired
    private IZzxxExaminationChoicequestionService zzxxExaminationChoicequestionService;

    /**
     * 查询选择题外键表列表
     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
//    {
//        startPage();
//        List<ZzxxExaminationChoicequestion> list = zzxxExaminationChoicequestionService.selectZzxxExaminationChoicequestionList(zzxxExaminationChoicequestion);
//        return getDataTable(list);
//    }

    /**
     * 导出选择题外键表列表
     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:export')")
//    @Log(title = "选择题外键表", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
//    {
//        List<ZzxxExaminationChoicequestion> list = zzxxExaminationChoicequestionService.selectZzxxExaminationChoicequestionList(zzxxExaminationChoicequestion);
//        ExcelUtil<ZzxxExaminationChoicequestion> util = new ExcelUtil<ZzxxExaminationChoicequestion>(ZzxxExaminationChoicequestion.class);
//        util.exportExcel(response, list, "选择题外键表数据");
//    }

    /**
//     * 获取选择题外键表详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:query')")
//    @GetMapping(value = "/{examinationId}")
//    public AjaxResult getInfo(@PathVariable("examinationId") Long examinationId)
//    {
//        return AjaxResult.success(zzxxExaminationChoicequestionService.selectZzxxExaminationChoicequestionByExaminationId(examinationId));
//    }

//    /**
//     * 新增选择题外键表
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:add')")
//    @Log(title = "选择题外键表", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
//    {
//        return toAjax(zzxxExaminationChoicequestionService.insertZzxxExaminationChoicequestion(zzxxExaminationChoicequestion));
//    }

    /**
     * 修改选择题外键表
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:edit')")
//    @Log(title = "选择题外键表", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody ZzxxExaminationChoicequestion zzxxExaminationChoicequestion)
//    {
//        return toAjax(zzxxExaminationChoicequestionService.updateZzxxExaminationChoicequestion(zzxxExaminationChoicequestion));
//    }

//    /**
//     * 删除选择题外键表
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:choicequestion:remove')")
//    @Log(title = "选择题外键表", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{examinationIds}")
//    public AjaxResult remove(@PathVariable Long[] examinationIds)
//    {
//        return toAjax(zzxxExaminationChoicequestionService.deleteZzxxExaminationChoicequestionByExaminationIds(examinationIds));
//    }
}
